﻿using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.ExpressApp.DC;

namespace EasyXaf.FullTextSearch;

public sealed class FullTextSearchEFCoreModule : ModuleBase
{
    public FullTextSearchEFCoreModule()
    {
        RequiredModuleTypes.Add(typeof(FullTextSearchModule));
    }

    public override void CustomizeTypesInfo(ITypesInfo typesInfo)
    {
        base.CustomizeTypesInfo(typesInfo);
        CriteriaOperator.RegisterCustomFunction(new FullTextContainsFunction());
    }
}
